package com.boatAnchorAssistant.pojo.entity;

import com.gitee.sunchenbin.mybatis.actable.annotation.Column;
import com.gitee.sunchenbin.mybatis.actable.annotation.TableComment;
import com.gitee.sunchenbin.mybatis.actable.constants.MySqlTypeConstant;
import lombok.Data;
import nirvana.core.domains.ann.AccEntity;
import nirvana.core.domains.entity.DomainBaseEntity;
import nirvana.core.domains.enums.EntityType;

import javax.persistence.Table;

/**
 * 【描 述】：
 * 【环 境】：J2SE 17
 * 【详 细】：
 *
 * @author 李松林
 * @version v1.0 2024/6/11 新建
 * @since 2024/6/11
 */
@Data
@Table
@AccEntity(value = "拓展字段", type = EntityType.SERVICE_ENTITY)
@TableComment("拓展字段")
public class ExpandField extends DomainBaseEntity<ExpandField> {


    /**
     * 字段内容
     */
    @Column(type = MySqlTypeConstant.VARCHAR,
            length = 1000,
            comment = "字段内容",
            isNull = false)
    private String content;

    /**
     * 所属模块
     */
    @Column(type = MySqlTypeConstant.VARCHAR,
            comment = "所属模块",
            isNull = false)
    private String model;


    /**
     * 字段名称
     */
    @Column(type = MySqlTypeConstant.VARCHAR,
            comment = "字段名称",
            isNull = false)
    private String name;


    /**
     * 排序
     */
    @Column(type = MySqlTypeConstant.INT,
            comment = "表单名称",
            isNull = false)
    private Integer sort;


    /**
     * 备注
     */
    @Column(type = MySqlTypeConstant.VARCHAR,
            comment = "字段名称",
            isNull = false,
            defaultValue = "")
    private String remark;



}
